import numpy as np

# 随机生成均值为3，方差为4，大小100的正态分布
mean = 3
variance = 4
size = 100
std_dev = np.sqrt(variance)  # 标准差是方差的平方根

normal_dist = np.random.normal(loc=mean, scale=std_dev, size=size)

# 输出描述性统计指标
print("描述性统计指标：")
print("均值（Mean）:", np.mean(normal_dist))
print("中位数（Median）:", np.median(normal_dist))
print("标准差（Standard Deviation）:", np.std(normal_dist))
print("方差（Variance）:", np.var(normal_dist))
print("最小值（Min）:", np.min(normal_dist))
print("最大值（Max）:", np.max(normal_dist))
print("25%分位数（25th Percentile）:", np.percentile(normal_dist, 25))
print("75%分位数（75th Percentile）:", np.percentile(normal_dist, 75))